package com.syj.jsxjj.ui.renzheng.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by xiejingwen on 2017/7/13 0013.
 */

public class AuthenticationBean implements Parcelable {
    private ContentBean content;

    public ContentBean getContent() {
        if (content==null){
            content = new ContentBean();
        }
        return content;
    }

    public void setContent(ContentBean content) {
        this.content = content;
    }

    public AuthenticationBean() {
    }

    @Override
    public String toString() {
        return "AuthenticationBean{" +
                "content=" + content +
                '}';
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeParcelable(this.content, flags);
    }

    protected AuthenticationBean(Parcel in) {
        this.content = in.readParcelable(ContentBean.class.getClassLoader());
    }

    public static final Creator<AuthenticationBean> CREATOR = new Creator<AuthenticationBean>() {
        @Override
        public AuthenticationBean createFromParcel(Parcel source) {
            return new AuthenticationBean(source);
        }

        @Override
        public AuthenticationBean[] newArray(int size) {
            return new AuthenticationBean[size];
        }
    };
}
